<script>
	import { mapActions } from 'vuex'
	export default {
		computed: {

		},
		methods: {
			...mapActions(['getUserOpenId','platformAuth','getUserStatus']),
		},
		onShow(e) {
			// 判断入口为哪个平台
			const query = JSON.stringify(e.query)
			if(query.includes('token')){
				this.$store.commit('setPlatformType',1)
				this.$store.commit('setPlatformToken',e.query.token)
			}else if(query.includes('ticket')){
				this.$store.commit('setPlatformType',2)
				this.$store.commit('setPlatformTicket',e.query.ticket)
			}else{
				this.$store.commit('setPlatformType',0)
			}
			if(query.includes('isRedirectUrl') || [1179,1089].includes(e.scene)){//1179收藏当前页为小程序，1089复制的短链接
				this.$store.commit('setIsRedirectUrl',false)
			}
			this.$cache.set('isLogin',false)
		},

		onHide() {

		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss';
	@import './common/uni.css';
	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
	}
	
	@import '@/static/tff/iconfont.scss';

	.container{
		min-height: calc(100vh - var(--window-top) - var(--window-bottom));
	}
</style>
